// 组织相关接口
import { get, post, put, exportDefault } from '@/utils/request'

// 组织的公共URL前缀
let BASE_URL = '/common/org'

const org = {
  queryOrgPage: (data) => post(BASE_URL + '/searchDefault', data),
  queryOrgOption: (data) => get(BASE_URL + '/searchList', data),
  createOrg: (data) => post(BASE_URL + '/create', data),
  updateOrg: (data) => put(BASE_URL + '/update', data),
  getOrgById: (data) => get(BASE_URL + '/getById', data),
  exportOrg: (data) => exportDefault(BASE_URL + '/exportDefault', data)
}
export default org
